        <div id="content">
            <div id="content_header" class="size_20" style=" border-bottom-width:medium; border-bottom-style:solid; border-bottom-color:#777777">
            	<img src="images/icn_mytaskTitle.gif" align="absmiddle">Ahli</div>
        	<div id="content_bgblue">
                <div id="content_bgwhite">

        	            
<div style="border: 0pt solid silver; width: 100%;">
<?=alert_some_message();?>
<?=alert_some_warning()?>
<?=alert_some_error()?>

<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td nowrap="nowrap"><? include "_tab_kelas_guru_murid.php";?>
    </td>
    <td width="150" align="left">&nbsp;</td>
    <td width="150" align="right">&nbsp;</td>
    <td width="150" align="right">&nbsp;</td>
  </tr>
</table>
<br/>
<form name="" action="?act=edit_staff" method="POST" target="" onSubmit="" onReset="">
  <fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
<legend style="font-size:1.0em; font-weight: bold;">Maklumat Peribadi </legend>

<table width="100%" cellspacing="1" cellpadding="2" border="0" class="classBackground">
  <tbody>

    <tr>
      <td width="20" align="left" valign="top" class="color_606060">&nbsp;</td>
      <td width="30%" align="left" valign="top">No Ahli </td>
      <td width="30">:</td>
      <td><span class="classRow"><?=$ahli->no_ahli?></span></td>
    </tr>
    <tr>
      <td width="20" align="left" valign="top" class="color_606060">&nbsp;</td>
      <td width="30%" align="left" valign="top">Nama</td>
      <td width="30">:</td>
      <td><span class="classRow"><?=$ahli->nama_ahli?></span></td>
    </tr>
    <tr>
      <td width="20" align="left" valign="top" class="color_606060">&nbsp;</td>
      <td width="30%" align="left" valign="top">No. KP Baru </td>
      <td width="30">:</td>
      <td><span class="classRow"><?=$ahli->nokp_baru?></span></td>
    </tr>
    <tr>
      <td width="20" align="left" valign="top" class="color_606060">&nbsp;</td>
      <td width="30%" align="left" valign="top">No. KP Lama </td>
      <td width="30">:</td>
      <td><span class="classRow"><?=$ahli->nokp_lama?></span></td>
    </tr>
    
    

    <tr>
      <td width="20" align="left" valign="top" class="color_606060">&nbsp;</td>
      <td width="30%" align="left" valign="top">Cawangan</td>
      <td width="30">:</td>
      <td><span class="classRow">
        <?=$khidmat->cawangan?>
      </span></td>
    </tr>
    
    
    <tr>
      <td valign="top" align="left" class="color_606060">&nbsp;</td>
      <td valign="top" align="left">Keahlian</td>
      <td width="30">:</td>
      <td><?=$pribadi->keahlian?></td>
    </tr>
    <tr>
      <td align="left" valign="top" class="color_606060">&nbsp;</td>
      <td align="left" valign="top">Ahli Insuran </td>
      <td>:</td>
      <td><span class="classRow">
        <? echo ($ahli->ahli_insuran=='1')?"Ya":"Tidak"?>
      </span></td>
    </tr>
  </tbody>
</table>
</fieldset>

<br />
<br />
<fieldset style="background:#ffffff; border-width:thin; border-style:solid; padding:10px; border-color:#CCCCCC;">
<legend style="font-size:1.0em; font-weight: bold;">Penyata Pembayaran Tahun:<span class="classRow">
<select name="sesi_tahun" id="sesi_tahun" onchange="location='?act=view_penyata&id=<?=$ahli->id?>&sesi_tahun='+this.value;">
  <?
				$combo   = new GUI();
				//$options = getOptionsFromTable('ref_negeri','id','negeri');
				for ($i=2009;$i<=$current_year;$i++) {
					$arr[$i] = $i;
				}
				$options = $arr;
				echo $combo->printCombo2($options, "",false, $selected_year, false,0);
			  ?>
</select>
</span></legend>
<table width="" cellspacing="1" cellpadding="2" border="1" class="classBackground">
  <tbody>
    <tr>
      <td width="50" align="left" valign="top" class="color_606060">Bulan</td>
      <? foreach ($irou_months as $month) {?>
      <td width="50" align="center" valign="top"><?=$month?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">B:Baki Bln Lepas</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$b_baki_bulan_lepas[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">Yuran</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$yurans[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">Sumbangan</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$sumbangans[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">Tabung Bangunan</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="middle">&nbsp;<?=$tabungs[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">Insuran</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$insurans[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">D:Mesti Byr</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$d_mesti_bayar[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">E:Jum Sudah Byr</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$e_jumlah_sudah_bayar[$month]?></td>
      <? } ?>
    </tr>
    <tr>
      <td width="50" align="left" valign="top" class="">F:Baki Mesti Byr</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top">&nbsp;<?=$f_baki_mesti_bayar[$month]?></td>
      <? } ?>
    </tr>
    <!--tr>
      <td width="50" align="left" valign="top" class="color_606060">Jumlah</td>
      <? foreach ($irou_month_nums as $month) {?>
      <td width="50" align="center" valign="top" class="color_606060">&nbsp;<?=$yurans[$month]+$sumbangans[$month]+$tabungs[$month]+$insurans[$month]?></td>
      <? } ?>
    </tr-->

<? //include "_abcdef.php";?>

  </tbody>
</table>

<!--br />
  Jumlah yuran belum bayar : <br/>
  <?
for ($i=0;$i<count($irou_months);$i++) {
	$diff_yuran = $diff_sumbangan = 0;
	$hutang = "";
	//if ($month == date(M)) break;
	//if ($irou_months[$i] == 'Jun') break;//test only
	if ($irou_month_nums[$i] == $current_month+1) break;
	$sql = "SELECT * FROM payment WHERE ahli_id='$_REQUEST[id]' AND sesi_tahun='$current_year' AND month='$irou_month_nums[$i]'";
	if ($res = $DB->Execute($sql)) {
		$dat = $res->FetchNextObject(false);
		//print_r($dat);exit;
		$paid_yuran      = $dat->yuran_amount==''?0:$dat->yuran_amount;
		$paid_sumbangan  = $dat->sumbangan_amount==''?0:$dat->sumbangan_amount;
		$paid_tabung     = $dat->tabung_amount==''?0:$dat->tabung_amount;
		$paid_insuran    = $dat->insuran_amount==''?0:$dat->insuran_amount;
		$diff_yuran     = $WAJIB_YURAN - $paid_yuran;
		$diff_sumbangan = $WAJIB_SUMBANGAN - $paid_sumbangan;
		$diff_tabung    = $WAJIB_TABUNG - $paid_tabung;
		$diff_insuran   = 0;
		if ($ahli->ahli_insuran=='1') {
			$diff_insuran   = $ahli->insuran_wajib - $paid_insuran;	
			//echo "tak bayar insuran? = $diff_insuran <br>\n";
		}
		//echo "hutang sumbangan = $ahli->insuran_wajib  $diff_insuran ahli? : $ahli->ahli_insuran <br>";
		if ( ($diff_yuran > 0) || ($diff_sumbangan > 0) || ($diff_tabung > 0) || ($diff_insuran > 0) ) {
			echo "<b>$irou_months[$i]</b><br/>";
			if ($diff_yuran > 0) {
				$hutang .= "&nbsp;&nbsp;Yuran: <span style=\"color:red\">RM$diff_yuran</span><br>\n";
			}
			if ($diff_sumbangan > 0) {
				$hutang .= "&nbsp;&nbsp;Sumbangan: <span style=\"color:red\">RM$diff_sumbangan</span> <br>\n";
			}
			if ($diff_tabung > 0) {
				$hutang .= "&nbsp;&nbsp;Tabung Bangunan: <span style=\"color:red\">RM$diff_tabung</span> <br>\n";
			}
			if ($diff_insuran > 0) {
				$hutang .= "&nbsp;&nbsp;Insuran: <span style=\"color:red\">RM$diff_insuran</span> <br>\n";
			}
			echo $hutang;
		}
		//echo $hutang;

	}
}
?> -->
</p>
</fieldset>
<br/>
<!-- JUMLAH PENDAPATAN && JULAT -->
<!-- --><br/>

<center>
        <? if(!$is_historical_data): ?>
		<input name="button2232" type="button" class="Button" onclick="location='?act=edit_penyata&id=<?=$ahli->id?>&sesi_tahun=<?=$selected_year?>'" value="Edit" style=" width:100px;" />
        <? endif; ?>
</center>

</form>


 <br>
 <br> <!--div id="content_footborder" style="width:930px; position:absolute; left:0; background:#ccccff; text-align:center">
  &copy; Kementerian Pelajaran Malaysia, 2010.
 </div-->

</div>
<!-- close content_bgwhite -->
</div>
<!-- close content_bgblue -->
</div>
<!-- close content -->

</div>
<!-- close container_content -->

</div>
<!-- close container -->
